<?php
/**
 * 默契问答题目库
 */

namespace App\Models\MainDB;

use Illuminate\Database\Eloquent\Model;

class QaQuestion extends Model
{

    protected $table = 'ln_qa_question';

    protected $fillable = [
        'id',
        'title',
        'sort',//排序,由小到大
        'add_time',
    ];

    public $timestamps = false;
    public $perPage = 15;

    public function qa_answer()
    {
        return $this->hasMany('App\Models\MainDB\QaAnswer', 'question_id', 'id');
    }
}
